<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   default_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php $this->setProductsCount(6);?>
<?php $this->setTopSellersCollection();?>

<?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
<div class="block block-related block-new-1">
    <div class="block-title">
    <h3><?php echo $this->__('Best Sell') ?></h3>
	<a class="to-more" alt="<?php echo $this->__('More daily Specials')?>" href="<?php echo $this->getUrl("list-product/?type=promotion");?>"></a>
	</div>
	 <div class="block-content">
		<ol class="mini-products-list" id="block-topsell">
			<?php foreach($_products as $_item): ?>
				<li class="item">
					
					<div class="product">
						<a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(150) ?>" width="150" height="150" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
						<div class="product-details">
							<p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></p>
							<?php echo $this->getPriceHtml($_item, true, '-related') ?>
							 <?php echo $this->getAddToCartHtml($_item);?>    
						</div>
					</div>
				</li>
				
			<?php endforeach ?>
			</ol>
	</div>
         <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
 <script type="text/javascript">auto_height.sameHeight4Col('h3', 'dailyspecials-auto-height')</script>
 <script type="text/javascript">auto_height.sameHeight4Col('div', 'dailyspecials-auto-height')</script>
</div>
 <?php endif; ?>
